home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96a.txt / 000055_icon-group-sender _Tue Feb 27 10:33:51 1996.msg < prev    next >
Internet Message Format  |  1996-09-05  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Tue, 27 Feb 1996 12:23:41 MST
  2. Date: Tue, 27 Feb 1996 10:33:51 -0600
  3. Message-Id: <199602271633.KAA00683@ns1.computek.net>
  4. Mime-Version: 1.0
  5. Content-Type: text/plain
  6. Content-Transfer-Encoding: 7bit
  7. From: gep2@computek.net
  8. Subject: Icon replacement for a perl script?
  9. To: icon-group@cs.arizona.edu
  10. X-Mailer: SPRY Mail Version: 04.00.06.17
  11. Errors-To: icon-group-errors@cs.arizona.edu
  12. Status: O
  13.  
  14. >...I've got a perl script which takes a list of filenames, and processes
  15. each one to find out which filter to use on the file (depending on a regexp
  16. match on the filename). Then it processes each file in turn, with the
  17. appropriate filters (and some default ones that are always applied), to
  18. create two new ones (a local copy, and a remote one).
  19.  
  20. >Since this takes a while (~11 minutes for 1158 files), and a ridiculous
  21. amount of memory (it peaks at about 16M of swap :-), I was wondering if
  22. it might be easier/faster/more memory efficient to do this in icon?
  23.  
  24. It is LUDICROUS to have to do that much swapping for a situation like this, 
  25. where even Vanilla SNOBOL would comfortably do the same job in less than 100K of 
  26. memory space, total.
  27.  
  28. >The most complicated replacement is
  29. &title;some text here => <head><title>some text here</title>
  30.  
  31. Clearly pretty trivial stuff.  Either Icon or SNOBOL4 would be a better choice. 
  32.  PERL is really *only* interesting, IMHO, if you don't have access to anything 
  33. better. 
  34.  
  35. >Does anyone have any suggestions? Any help gratefully appreciated
  36. (especially by the drive my swap space is on :-)
  37.  
  38. Get yourself a copy of Icon, and/or SNOBOL4, and throw PERL away.
  39.  
  40. Gordon Peterson
  41. http://www.computek.net/public/gep2/
  42.  
  43.